package com.yt.demo.jedis;

import redis.clients.jedis.Jedis;

import java.util.Set;

public class JedisTest {
    public static void main(String[] args) {
        //切换springboot 依赖后，没有这个类
        Jedis jedis=new Jedis("192.168.109.100",6379);
        jedis.auth("123456");
        //测试连接是否成功
//        String ping = jedis.ping();
//        System.out.println(ping);
        Set<String> keys = jedis.keys("*");
        keys.forEach(System.out::println);
    }

}
